<?php



class Datos
{
	var $hostname = "localhost";
	var $database = "mep_guapiles";
	var $username = "root";
	var $pass = "admin";
	var $con = null;
	
	function conectar(){
		
		$this->con = mysql_connect(	$this->hostname, $this->username, $this->pass) or die ("Imposible conectarse a la base de datos de fotos");	
		return mysql_select_db($this->database, $this->con);
	}
	
	function desconectar(){
		
		@mysql_close($this->con);
		
	}
}

?>